package com.xxcloud;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by chenbingwen on 19/10/28.
 */
@SpringBootApplication
@ComponentScan(basePackages = { "com.xxcloud.*.*", "com.xxcloud.web.*.*", "com.xxcloud.search" })
@MapperScan(basePackages = { "com.xxcloud.dao.mapper.*" })
@EnableEurekaClient
@ServletComponentScan
@EnableSwagger2
public class CloudWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudWebApplication.class, args);
    }
}